#ifndef _OBJ2_H_
#define _OBJ2_H_

#include "obj.h"

#define Obj2_DEF \
  Obj_DEF; \
  int val;

#define Obj2_SHARED \
  Obj_SHARED; \
  int (*getVal)(void *this); \
  void (*setVal)(void *this, int val); \
  FNGS(int,val);

  
#define Obj2_EXCLUSIVE \
  void (*priv)(void *this); \
  void (*p)(void *this)

BUILD_OBJ(Obj2);

#endif